package file;

import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description: File类中的方法（2）
 * User: 王圆豪
 * Date: 2025-05-09
 * Time: 20:16
 */
public class Demo2 {
    public static void main(String[] args) throws IOException {
        File file = new File("D:\\JavaEE\\jav" +
                "a-ee-beginners-learning\\JavaEE_20250417\\out\\prod" +
                "uction\\JavaEE_20250417/test.txt");
        System.out.println(file.exists());
        System.out.println(file.isDirectory());
        System.out.println(file.isFile());
        System.out.println(file.createNewFile());

    }
}
